package org.wlw.factory;

import org.wlw.service.IMovieService;
import org.wlw.service.impl.MovieService;

public class SimpleFactory {
    private static IMovieService movieService;
    //单例模式，永远只会创建1个movieService
    public static IMovieService getMovieService() {
        if(movieService==null) {
            movieService = new MovieService();
        }
        return movieService;
    }

}
